//
//  ROBaseViewController.h
//  Runone
//
//  Created by runone02 on 16/12/17.
//  Copyright © 2016年 runone. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef  void(^ROBaseViewControllerHandle)();

@interface ROBaseViewController : UIViewController

- (void) pop;
- (void) popToRootVc;
- (void) popToVc:(UIViewController *)vc;

- (void) dismiss;
- (void) dismissWithCompletion:(void(^)())completion;

- (void)presentVc:(UIViewController *)vc;
- (void) presentVc:(UIViewController *)vc completion:(void(^)(void))completion;

- (void) pushVc:(UIViewController *)vc;

- (void) removeChildVc:(UIViewController *)childVc;

- (void) addChildVc:(UIViewController *)childVc;

/*
 * 加载中动画
 */
- (void) showLoadingAnnimation;

/*
 * 停止加载动画
 */
- (void) hideLoadingAnnimation;

/*
 * 加载数据,子类实现网络请求
 */
- (void) loadData;

@property (nonatomic, assign) BOOL isNetWorReachable; //是否有网络

@end
